﻿@using YuYuKiCms.Internet.Properties
@{
    var language = ViewContext.RouteData.Values.ContainsKey("language") ? ViewContext.RouteData.Values["language"].ToString() : string.Empty;
}

@foreach (var lg in Settings.Default.LANGUAGE)
{
    if (lg.Equals(language, StringComparison.OrdinalIgnoreCase))
    {
        <span>@lg</span>
    }
    else
    {
        @Html.ActionLink(lg, "ChangeCulture", "Language", new {lang = lg, returnUrl = Request.RawUrl}, null)
    }
}